package com.mxfcode.front.bbs_comment.mapper;

import com.mxfcode.entity.BBSComment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CommentMapper {

    List<BBSComment> selectCommentsByEntity(int entityType, String entityId, int offset, int limit);

    int selectCountByEntity(int entityType, String entityId);

    int insertComment(BBSComment comment);

    BBSComment selectCommentById(int id);

}
